using UnityEngine;
using UnityEngine.InputSystem;

public class SlingShotAera : MonoBehaviour
{
    [SerializeField] private LayerMask slingshotAera;
    public bool IsWithinSlingshotAera()
    {
        Vector2 worldPosition = Camera.main.ScreenToWorldPoint(Mouse.current.position.ReadValue());

        return Physics2D.OverlapPoint(worldPosition, slingshotAera);
    }
}
